package com.aspose.cells;

class zbry extends zbz {
   zbry(zbrx var1) {
      this.c(2064);
      this.b(16);
      String var2 = var1.b;
      if (var2 != null) {
         this.b(this.d() + (short)zakq.e(var2));
      }

      this.c = new byte[this.d()];
      this.c[0] = 16;
      this.c[1] = 8;
      int var3 = var1.a;
      System.arraycopy(com.aspose.cells.b.a.zc.a(var3), 0, this.c, 8, 4);
      System.arraycopy(com.aspose.cells.b.a.zc.a(a(var1.a())), 0, this.c, 12, 2);
      if (var2 != null) {
         System.arraycopy(com.aspose.cells.b.a.zc.a(var2.length()), 0, this.c, 14, 2);
         zco.a(this.c, 16, var2);
      }

   }

   private static int a(int var0) {
      switch(var0) {
      case 0:
         return 4117;
      case 1:
         return 1;
      case 2:
         return 4096;
      case 3:
         return 4097;
      case 4:
         return 4098;
      case 5:
         return 4099;
      case 6:
         return 4100;
      case 7:
         return 4101;
      case 8:
         return 4102;
      case 9:
         return 4103;
      case 10:
         return 4104;
      case 11:
         return 4105;
      case 12:
         return 4106;
      case 13:
         return 4107;
      case 14:
         return 4108;
      case 15:
         return 4109;
      case 16:
         return 4110;
      case 17:
         return 4111;
      case 18:
         return 4112;
      case 19:
         return 4113;
      case 20:
         return 4114;
      case 21:
         return 4115;
      default:
         return 1;
      }
   }
}
